package org.example.myleet.p925;

import java.util.HashMap;
import java.util.Map;

public class Main {

    public static void main(String[] args) {
        Map<String, Boolean> inputs = new HashMap<>();
        inputs.put("alex,aaleex", true);
        inputs.put("saeed,ssaaedd", false);
        inputs.put("leelee,lleeelee", true);
        inputs.put("laiden,laiden", true);
        inputs.put("pyplrz,ppyypllr", false);
        Solution solution = new Solution();
        String[] input;
        for (Map.Entry<String, Boolean> entry : inputs.entrySet()) {
            input = entry.getKey().split(",");
            if (entry.getValue() != solution.isLongPressedName(input[0], input[1])) {
                throw new RuntimeException("答案错误");
            }
        }
        System.out.println("finish");
    }
}
